package com.kwan.widget.float_view.floatwindow;

import android.app.Activity;
import android.view.View;

/**
 * Created by yhao on 17-11-14.
 * https://github.com/yhaolpz
 */

abstract class FloatView {

	abstract void setSize(int width, int height);

	abstract void setView(View view);

	abstract void setGravity(int gravity, int xOffset, int yOffset);

	abstract void init(Activity activity);

	abstract void dismiss();

	abstract boolean isShow();

	abstract void show();

	abstract void hide();

	void updateXY(int x, int y) {
	}

	void updateX(int x) {
	}

	void updateY(int y) {
	}

	int getX() {
		return 0;
	}

	int getY() {
		return 0;
	}

	void updateShowState() {

	}
}
